#include "Processing/StainedVisitor.hpp"

namespace mif
{
	
	StainedVisitor::StainedVisitor()
	{
		//EMPTY
	}
	
	StainedVisitor::~StainedVisitor()
	{
		//EMPTY
	}
	
	void StainedVisitor::Colored(Mesh & pMesh)
	{
	
		std::cout << "StainedVisitor Processing ..." << std::endl;
		
		for(auto vVertexIt = pMesh.VertexBegin(); vVertexIt != pMesh.VertexEnd(); vVertexIt++)
			if((*vVertexIt).GetID() % PAINTING_RATE == 0)
				for(Vertex::FacesIterator vFaceIt = (*vVertexIt).begin(); vFaceIt != (*vVertexIt).end(); ++vFaceIt){
				
					RGBA vColor; vColor.r = 255; vColor.g = 0; vColor.b = 0; vColor.a = 0; 
					
					vFaceIt->SetColor(vColor);
					
				}
	}
	
}
